package com.service.imput;

import com.dao.StorageDao;
import com.entity.Storage;
import com.service.StorageService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("StorageService")
public class StorageServiceImp implements StorageService {

    @Resource
    private StorageDao storageDao;

    @Override
    public List<Storage> finStorage() {
        return storageDao.finStorage();
    }

    @Override
    public Storage storageId(int id) {
        return storageDao.storageId(id);
    }

    @Override
    public int updateStorage(Storage storage) {
        return storageDao.updateStorage(storage);
    }

    @Override
    public int insertStorage(Storage storage) {
        return storageDao.insertStorage(storage);
    }

    @Override
    public List<Storage> listStorage(String srCode, String goodName) {
        return storageDao.listStorage(srCode,goodName);
    }
}
